Optimal. Leaf size=265 \[ \frac {a^{3/2} (176 A+133 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^2 (176 A+133 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (176 A+133 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+67 C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {3 a C \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.45, antiderivative size = 265, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.162, Rules used = {4174, 4103,
4101, 3888, 3886, 221} \begin {gather*} \frac {a^{3/2} (176 A+133 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{128 d}+\frac {a^2 (80 A+67 C) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{240 d \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (176 A+133 C) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{192 d \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (176 A+133 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{128 d \sqrt {a \sec (c+d x)+a}}+\frac {C \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}{5 d}+\frac {3 a C \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}{40 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 3886
Rule 3888
Rule 4101
Rule 4103
Rule 4174
Rubi steps
\begin {align*} \int \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {\int \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {5}{2} a (2 A+C)+\frac {3}{2} a C \sec (c+d x)\right ) \, dx}{5 a}\\ &=\frac {3 a C \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {\int \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {5}{4} a^2 (16 A+11 C)+\frac {1}{4} a^2 (80 A+67 C) \sec (c+d x)\right ) \, dx}{20 a}\\ &=\frac {a^2 (80 A+67 C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {3 a C \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{96} (a (176 A+133 C)) \int \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^2 (176 A+133 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+67 C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {3 a C \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{128} (a (176 A+133 C)) \int \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^2 (176 A+133 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (176 A+133 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+67 C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {3 a C \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{256} (a (176 A+133 C)) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^2 (176 A+133 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (176 A+133 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+67 C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {3 a C \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}-\frac {(a (176 A+133 C)) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}\\ &=\frac {a^{3/2} (176 A+133 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^2 (176 A+133 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (176 A+133 C) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (80 A+67 C) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {3 a C \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {C \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.32, size = 273, normalized size = 1.03 \begin {gather*} \frac {\cos ^3(c+d x) (a (1+\sec (c+d x)))^{3/2} \left (A+C \sec ^2(c+d x)\right ) \left ((10480 A+13313 C+12 (880 A+1273 C) \cos (c+d x)+4 (3280 A+3059 C) \cos (2 (c+d x))+3520 A \cos (3 (c+d x))+2660 C \cos (3 (c+d x))+2640 A \cos (4 (c+d x))+1995 C \cos (4 (c+d x))) \sec ^{\frac {11}{2}}(c+d x) \sqrt {1+\sec (c+d x)} \tan \left (\frac {1}{2} (c+d x)\right )-120 (176 A+133 C) \csc (c+d x) \left (\log (1+\sec (c+d x))-\log \left (\sqrt {\sec (c+d x)}+\sec ^{\frac {3}{2}}(c+d x)+\sqrt {1+\sec (c+d x)} \sqrt {\tan ^2(c+d x)}\right )\right ) \sqrt {\tan ^2(c+d x)}\right )}{7680 d (A+2 C+A \cos (2 (c+d x))) (1+\sec (c+d x))^{3/2}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(511\) vs.
\(2(227)=454\).
time = 20.93, size = 512, normalized size = 1.93
method | result | size |
default | \(\frac {\left (2640 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )-2640 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )-\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right )+1995 C \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )-1995 C \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )-\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )+5280 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right )+3990 C \left (\cos ^{4}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+3520 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right )+2660 C \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+1280 A \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+2128 C \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+1824 C \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+768 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )-1\right ) a}{7680 d \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )^{2}}\) | \(512\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 7235 vs.
\(2 (227) = 454\).
time = 1.48, size = 7235, normalized size = 27.30 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.26, size = 518, normalized size = 1.95 \begin {gather*} \left [\frac {15 \, {\left ({\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{5} + {\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{4}\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - \frac {4 \, {\left (\cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {4 \, {\left (15 \, {\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{4} + 10 \, {\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{3} + 8 \, {\left (80 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{2} + 912 \, C a \cos \left (d x + c\right ) + 384 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{7680 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}}, \frac {15 \, {\left ({\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{5} + {\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{4}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right ) + \frac {2 \, {\left (15 \, {\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{4} + 10 \, {\left (176 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{3} + 8 \, {\left (80 \, A + 133 \, C\right )} a \cos \left (d x + c\right )^{2} + 912 \, C a \cos \left (d x + c\right ) + 384 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{3840 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________